import { t } from '@src/locales'

export enum TaskAllotTypeModeEnum {
  List = 'list',
  Map = 'map',
  Calendar = 'calendar',
  ServiceProvider = 'serviceProvider',
}

export const TaskAllotModalFooterClassName: string = 'task-allot-modal-dialog-footer'

export interface ICreateEditTask {
  // 保存并派单
  createAndAllot?: boolean
  // 服务商id
  serviceProviderId?: string,
  // 用来判断是否是新建并派单的操作
  isCreateEditTask?: boolean,
  task?:{}
}

export const TaskVNodeTypeEnum = {
  ServiceDepartment: `${t('common.base.serviceDepartment')}：`,
  Executor: `${t('task.executor')}：`,
  Synergies: `${t('task.synergies')}：`,
  PlanStartTime: `${t('common.form.type.planStartTime')}：`,
  PlanEndTime: `${t('common.form.type.planEndTime')}：`,
  AllotReason: `${t('task.detail.components.transferDesc')}：`,
  ServiceProvider: `${t('common.form.type.serviceProviders')}：`,
}
